package com.linked.pay.feign;

import com.linked.pay.feign.fallback.ScheduledTasksFeignFallBack;
import com.linked.universal.bean.scheduledtasks.injuiry.LinkedInquiry;
import com.linked.universal.common.LinkedResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author :dbq
 * @date : 2023/5/12 15:41
 * @description : desc
 */
@FeignClient(value = "Linked-ScheduledTasks", fallback = ScheduledTasksFeignFallBack.class)
public interface IScheduledTasksFeign {

    @PostMapping(value = "/tasks/taskinquiry/removeInquiryByTraceId")
    public LinkedResult removeInquiryByTraceId(@RequestParam("inquiryKey") String inquiryKey,@RequestParam("traceId") String traceId);

    @PostMapping(value = "/tasks/taskinquiry/addInquiry")
    public LinkedResult addInquiry(@RequestBody LinkedInquiry param) throws Exception;
}
